package com.muyu.danmo.domain;

import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 省份对象 danmo_province
 *
 * @author yangle
 * @date 2024-09-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class DanmoProvince extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 省份id */
    private Long id;

    /** 省份编码 */
    @Excel(name = "省份编码")
    private String provinceCode;

    /** 省份名称 */
    @Excel(name = "省份名称")
    private String name;


    private List<DanmoProvince> danmoProvinceList;

    /**
     * 城市编码
     */
    private String cityCode;

    /**
     *区县编码
     **/
    private String countyCode;


//    public void setId(Long id)
//    {
//        this.id = id;
//    }
//
//    public Long getId()
//    {
//        return id;
//    }
//    public void setProvinceCode(String provinceCode)
//    {
//        this.provinceCode = provinceCode;
//    }
//
//    public String getProvinceCode()
//    {
//        return provinceCode;
//    }
//    public void setName(String name)
//    {
//        this.name = name;
//    }
//
//    public String getName()
//    {
//        return name;
//    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("provinceCode", getProvinceCode())
            .append("name", getName())
            .toString();
    }
}
